$(function(){
    init();
    
    function init(){
        //执行代码
        getMoneyctrlproduct();
    }

    function getMoneyctrlproduct() {
        var mpId = location.search;
        console.log(mpId);
        $.get("http://193.112.55.79:9090/api/getmoneyctrlproduct"+mpId,function(res){
            console.log(res);
            console.log(res.result);
            var html = template("tmpsection",{arr:res.result});
            $("section").html(html);

            var html2 = template("tmpcomment",{arr2:res.result});
            $(".comment").html(html2);
        })
    }
})